import 'package:flutter/material.dart';
import 'package:flutter_framework/theme/dark_theme.dart';
import 'package:flutter_framework/theme/light_theme.dart';
import 'package:flutter_framework/theme/theme_item.dart';

// 定义两种主题颜色，以及扩展颜色
class Themes {
  static final lignt = ThemeItem(
      themeEnum: ThemeEnum.light,
      themeData:
          ThemeData.light().copyWith(
              scaffoldBackgroundColor: Colors.white,
          brightness: Brightness.light),
      connerColor: LightTheme.textColor,
      themeMode: ThemeMode.light);

  static final dark = ThemeItem(
      themeEnum: ThemeEnum.dark,
      themeData:
          ThemeData.light().copyWith(
              scaffoldBackgroundColor: Colors.black,
          primaryColor: Colors.red,
          brightness: Brightness.dark),
      connerColor: DarkTheme.textColor,
      themeMode: ThemeMode.dark);
}
